package com.example.lib_common.websocket;

import com.example.lib_common.utils.LoggerUtils;

import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;

import java.net.URI;

/**
 * @author yaotianxue
 * @description
 * @date 2024/10/29
 */
public class ZWebSocketClient extends WebSocketClient {
    public ZWebSocketClient(URI serverUri) {
        super(serverUri);
    }

    @Override
    public void onOpen(ServerHandshake handshakedata) {
        LoggerUtils.d("ZWebSocketClient", "onOpen");
    }

    @Override
    public void onMessage(String message) {
        LoggerUtils.d("ZWebSocketClient", "onMessage");

    }

    @Override
    public void onClose(int code, String reason, boolean remote) {
        LoggerUtils.d("ZWebSocketClient", "onClose");

    }

    @Override
    public void onError(Exception ex) {
        LoggerUtils.d("ZWebSocketClient", "onError");

    }
}
